package com.yanze.service.impl;

import com.yanze.mapper.IssueMapper;
import com.yanze.pojo.Issue;
import com.yanze.service.IssueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class IssueServiceimpl implements IssueService {

    @Autowired
    IssueMapper mIssueMapper;


    @Override
    @Transactional(propagation = Propagation.REQUIRED)
    public int addIssue(Issue issue) {
        int flag = mIssueMapper.insert(issue);
        return flag;
    }
}
